package com.corpgovernment.common.passport.dataloader;

import com.corpgovernment.common.passport.client.BasicManagePassportClient;
import com.corpgovernment.common.passport.client.OrganizationPassportClient;
import com.corpgovernment.common.passport.context.PassportSpringContext;
import com.corpgovernment.common.passport.entity.MbPassportWarnInfo;
import org.springframework.stereotype.Component;

/***
 * @author zwmao
 * @version 1.0.0
 * @date 2023/10/16
 **/
@Component
public class MbPassportWarnInfoDataLoader {
    public boolean insert(MbPassportWarnInfo mbPassportWarnInfo){
        OrganizationPassportClient organizationPassportClient = PassportSpringContext.getBean(OrganizationPassportClient.class);
        return organizationPassportClient.insertWarnInfo(mbPassportWarnInfo);
    }
}
